from appium.webdriver.common.appiumby import AppiumBy

from page.base_page import BasePage
from page.member_eidt_page import MemberEditPage


class PersonalInfoPage(BasePage):
    def __init__(self, driver):
        super().__init__(driver)

    def to_member_edit_page(self) -> MemberEditPage:
        self.find(AppiumBy.CSS_SELECTOR, '[text="编辑成员"]').click()
        return MemberEditPage(self.driver)